/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-05 11:13:01
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-05 11:25:49
 */
//创建一个int类型的二维数组，求和
public class St {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{4,5,6},{7,8,9}};
        int sum = 0;
        for(int i = 0;i < arr.length;i++){
            for(int j = 0;j < arr[i].length;j++){
                sum += arr[i][j];
            }
        }
        System.out.println("sum:"+sum);
    }
}
